@extends('home.base')
@section('title')
    {{ $data->title }}
@endsection
@section('content')
    <div class="page-wrapper">

        <!-- Preloader -->
        <div class="preloader"></div>

        @include('home.header')
        <section class="page-title">
            <img src="/static/home/images/background/page-title-bg.jpg" alt="燕窝果苗批发">
{{--            <div class="auto-container">--}}
{{--                <div class="sec-title">--}}
{{--                    <h1>&nbsp;</h1>--}}
{{--                    <div class="bread-crumb">&nbsp;</div>--}}
{{--                </div>--}}
{{--            </div>--}}
        </section>

        <div class="sidebar-page pg-bg-cl">
            <div class="auto-container">
                <div class="row clearfix">

                    <!--Content Side-->
                    <div class="col-lg-9 col-md-8 col-sm-12 col-xs-12 news_detail">
                        <h4 class="title">{{ $data->title }}</h4>
                        {!! $data->content !!}
                    </div>
                    <!--Content Side-->

                    <!--Sidebar-->
                    <div class="col-lg-3 col-md-4 col-sm-12 col-xs-12 right_menu">
                        <aside class="sidebar">
                            <!-- Recent Posts -->
                            <div class="widget recent-posts wow fadeInUp" data-wow-delay="0ms" data-wow-duration="1500ms">
                                <div class="sidebar-title"><h3>最新资讯</h3></div>
                                @if(!empty($new))
                                    @foreach($new as $n)
                                <article class="post n_list">
                                    <figure class="post-thumb">
                                        <a href="{{ route('home.news.article', ['id'=>$n->id]) }}">
                                        <img src="{{ $n->thumb }}" alt="">
                                        </a>
                                    </figure>
                                    <h6><a href="{{ route('home.news.article', ['id'=>$n->id]) }}">{{ $n->title }}</a></h6>
                                </article>
                                    @endforeach
                                @endif


                            </div>

                            <!-- Popular Tags -->
                            <div class="widget popular-tags">
                                <div class="sidebar-title"><h3>Tags</h3></div>
                                @if(!empty($data->tags))
                                    @foreach($data->tags as $t)
                                    <a href="javascript:;">{{ $t->name }}</a>
                                    @endforeach
                                @endif

                            </div>

                        </aside>


                    </div>
                    <!--Sidebar-->


                </div>
            </div>
        </div>

        @include('home.footer')

    </div>
    <!--End pagewrapper-->
@endsection

@section('script')

@endsection
